package com.yzg.simple.netty.chat.client;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
/**
 * @ClassName NettyChatInitializer
 * @Description TODO
 * @Authoe weiyan
 * @Date 2019/12/30 10:44
 * @Version 1.0
 *
 * netty handler 处理链式编程 NettyChatInitializer 也是一个Handler
 **/
public class NettyChatClientInitializer extends ChannelInitializer<SocketChannel> {

    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().addLast(new NettyChatClientHandler());


    }
}